Inside Macintosh: Macintosh Toolbox Essentials

Previous | Chapter Top | Chapter Contents | Next

Part Identifiers for ColorSpec Records

To specify the color for part of a window, you use a ColorSpec record in the ctTable field of a window color table record; see "The Window Color Table Record" for details. To specify the window part, you specify one of these values in the partIdentifier field of the ColorSpec record:

enum {
    wContentColor           = 0,    /* content rgn background */
    wFrameColor             = 1,    /* window outline */
    wTextColor              = 2,    /* window title and
                                    /* button text */
    wHiliteColor            = 3,    /* reserved */
    wTitleBarColor          = 4,    /* reserved */
    wHiliteColorLight       = 5,    /* lightest stripes in
                                    /* title bar & lightest
                                    /* dimmed text */
    wHiliteColorDark        = 6,    /* darkest stripes in
                                    /* title bar and
                                    /* darkest dimmed text */
    wTitleBarLight          = 7,    /* lightest parts of
                                    /* title bar background */
    wTitleBarDark           = 8,    /* darkest parts of */
                                    /* title bar background */
    wDialogLight            = 9,    /* lightest element
                                    /* of dialog box frame */
    wDialogDark             = 10,   /* darkest element of
                                    /* dialog box frame */
    wTingeLight             = 11,   /* lightest window tinging */
    wTingeDark              = 12    /* darkest window tinging */
};

Enumerator descriptions

wContentColor
Produces background color for content region of window.
wFrameColor
Produces color of window's outline.
wTextColor
Produces color of window's title and button text.
wHiliteColor
Reserved.
wTitleBarColor
Reserved.
wHiliteColorLight
Produces color of the lightest stripes in the title bar and the lightest dimmed text.
wHiliteColorDark
Produces color of the darkest stripes in the title bar and the darkest dimmed text.
wTitleBarLight
Produces color of the lightest parts of the title bar background.
wTitleBarDark
Produces color of the darkest parts of the title bar background.
wDialogLight
Produces color of the lightest element of the dialog box frame.
wDialogDark
Produces color of the darkest element of the dialog box frame.
wTingeLight
Produces color of the lightest window tinging.
wTingeDark
Produces color of the darkest window tinging.

© 1997 Apple Computer, Inc.

Previous | Chapter Top | Chapter Contents | Next